def simple_coroutine():
    print('-> start')
    x = yield
    print('-> recived', x)

sc = simple_coroutine()
iplist = ['127.0.0.1', '127.0.0.2', '127.0.0.3']
next(sc)
sc.send(iplist)